<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="LeaveApproval, App_Web_kim3uyhp" %>
<%@ Register Assembly="Heidarpour.WebControlUI" Namespace="Heidarpour.WebControlUI"
    TagPrefix="rhp" %>
<%--<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
</asp:Content>--%>

<%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="AjaxControlToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style6
        {
            width: 915px;
            color: #FFFFFF;
        }
        .style14
        {
            height: 27px;
            width: 906px;
            font-size: 8pt;
        }
        .textbox
        {}
        .btnRt003366
        {}
        .style17
        {
            width: 196px;
        }
        .style18
        {
            width: 218px;
        }
        .style19
        {
            font-family: Verdana;
            font-size: 8pt;
        }
        .style20
        {
            font-family: Verdana;
            font-size: 9pt;
            font-weight: 700;
        }
        #Search
        {
            font-family: Verdana;
            font-size: 9pt;
        }
        .style21
        {
            height: 28px;
            width: 906px;
            font-size: 8pt;
        }
           .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px 8px !important;
    vertical-align: middle;
    border-color: #ddd;
}
                      .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
      margin-top: -37px;
    padding: 7px !important;
}
   .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: .05rem 0rem;
    /* margin-bottom: 1rem; */
    list-style: none;
    background-color: #fff !important;
    border-radius: .25rem;
    color: #E15C11;
    font-size: 18px;
    font-weight: 500;
}
.card-body span
{
    font-size:13px;
    font-weight:600;
}
.grid-lable1 span
{
    font-size: 14px !important;
    line-height: 1.42857 !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding-left: 7px !important;
    padding-top: -3px !important;
    position: relative !important;
    top: -3px !important;
}
#MainContent_lblLeaveDuration
{
    font-size:16px;
    padding-left:10px;
}
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <script type="text/javascript">

    function validate() {
        var txttext = document.getElementById("<%= cboStatus.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter Leave Status");
            document.getElementById("<%= cboStatus.ClientID %>").focus();
            return false;
        }
        var txttext = document.getElementById("<%= txtfromdate.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter From Date");
            document.getElementById("<%= txtfromdate.ClientID %>").focus();
            return false;
        }

        var txttext = document.getElementById("<%= txtdateto.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter To Date");
            document.getElementById("<%= txtdateto.ClientID %>").focus();
            return false;
        }

        return true;
    }
    function RefreshParent() {

        window.opener.document.getElementById("search").click();
        alert('sharad');
        window.close();
    }
</script>
    

<div class="main-panel">
        <div class="content">
        <div class="container" id="LeaveApproval12" runat="server">
   <div class="row dash-pane2">

     <div class="card">
                <div class="card-header card-header-warning">
                  <h4 class="card-title"><i class="fa fa-edit fa-fw"></i><asp:Label ID="lblAddEditLeaveApplication" runat="server" Text="Add/Edit Leave Application"></asp:Label></h4>
                  
                </div>
                <div class="card-body table-responsive">
                 <div class="row breadcrumb" style="margin-top:-15px;">
                 <b>
<asp:Label ID="lblEmployeeDetails" runat="server" Text="Employee Details"></asp:Label></b>
                 </div>
                 <div class="row" style="margin-top:-20px;">
                 <div class="col-lg-3">
                               <asp:Label ID="Label22" runat="server" Text="Employee Code" ></asp:Label>
            <asp:Label ID="Label35" runat="server" ForeColor="#FF3300" 
                Text="*"></asp:Label>
                 <asp:TextBox ID="txtpaycode" runat="server"
          class="form-control"></asp:TextBox>

                              </div>
                                <div class="col-lg-3">
                                 <asp:Label ID="Label21" runat="server" Text="From Date" ></asp:Label>
                                 <asp:TextBox ID="txtfromdate" runat="server" class="form-control"></asp:TextBox>

                                  <asp:Panel ID="Panel6" runat="server" Visible="false">
                            <rhp:DatePicker ID="txtfromdate1" runat="server" DatePersian="" CalendarType="Persian"  
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" ShowWeekNumbers="True" 
        FirstDayOfWeek="Monday" ShowOthers="True" ></rhp:DatePicker>
                            </asp:Panel>


                             <AjaxControlToolkit:calendarextender id="CalendarExtender1" runat="server" format="dd/MM/yyyy" 
                                 targetcontrolid="txtfromdate">
                                 </AjaxControlToolkit:calendarextender>
 
        
         
                              
                              </div>
                                <div class="col-lg-3">
                               <asp:Label ID="Label24" runat="server" Text="To Date" ></asp:Label>

                               <asp:TextBox ID="txtdateto" runat="server" class="form-control"></asp:TextBox>

                                <asp:Panel ID="Panel1" runat="server" Visible="false">
                            <rhp:DatePicker ID="txtdateto1" runat="server" DatePersian="" CalendarType="Persian"  
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" ShowWeekNumbers="True" 
        FirstDayOfWeek="Monday" ShowOthers="True" ></rhp:DatePicker>
                            </asp:Panel>


 <AjaxControlToolkit:calendarextender id="CalendarExtender2" runat="server" format="dd/MM/yyyy" 
                                 targetcontrolid="txtdateto">
                                 </AjaxControlToolkit:calendarextender>
                              </div>
                                <div class="col-lg-3">
                              <asp:Label ID="Label4" runat="server" Text="Status" ></asp:Label>
                              <asp:DropDownList ID="cboStatus" runat="server"
        
       class="form-control">
    <asp:ListItem>----Select Status---</asp:ListItem>
    <asp:ListItem>Approved</asp:ListItem>
    <asp:ListItem>UnApproved</asp:ListItem>
      </asp:DropDownList>

                              </div>
                                <div class="col-lg-3">
                              <asp:Label ID="Label12" runat="server" Text="Employee Name" ></asp:Label>
                                                    <asp:TextBox ID="txtName" runat="server" class="form-control"></asp:TextBox>

                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label13" runat="server" Text="Father/Husband Name" ></asp:Label>
                                <asp:TextBox ID="txtfarther" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label5" runat="server" Text="Designation" ></asp:Label>
                                <asp:TextBox ID="txtdesignation" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label6" runat="server" Text="Compnay" ></asp:Label>
                                <asp:TextBox ID="txtcompnay" runat="server" class="form-control"></asp:TextBox>
                              </div>
                             <div class="col-lg-3">
                           <asp:Label ID="Label7" runat="server" Text="Card No" ></asp:Label>
                            <asp:TextBox ID="txtcardno" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label8" runat="server" Text="Department" ></asp:Label>
                                <asp:TextBox ID="txtdepartment" runat="server" class="form-control"></asp:TextBox>
                               
                              
                              </div>
                                <div class="col-lg-3">
                                 <asp:Label ID="Label25" runat="server" Text="Email Address" ></asp:Label>
                              <asp:TextBox ID="TxtEmail" runat="server" class="form-control"></asp:TextBox>
                              </div>
                              <div class="col-lg-12" style="margin-top:0px; margin-left:-15px;">
							  <ol class="breadcrumb"><li><b>

 <asp:Label ID="lblLeaveDetails" runat="server" Text="Leave Details"></asp:Label></b></li></ol>
							  </div>
                              <div class="col-lg-3" style="margin-top:-20px;">
                              <asp:Label ID="Label1" runat="server" Text="Leave Name " ></asp:Label>
                              <asp:DropDownList ID="cboleavename" runat="server" class="form-control">
      </asp:DropDownList>
                              
                              </div>
                                <div class="col-lg-3" style="margin-top:-20px;">
                                <asp:Label ID="Label2" runat="server" Text="Reason " ></asp:Label>
                                <asp:TextBox ID="txtreason" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3" style="margin-top:-20px;">
                               <asp:Label ID="Label3" runat="server" Text="Remarks " ></asp:Label>
                <asp:Label ID="Label36" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                    <asp:TextBox ID="Txtremark" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>

                               <div class="row" style="margin-top:10px; margin-left:15px; margin-right:15px; width:100%">
                               <div class="panel panel-primary" style="width:100%">
                               <div class="panel-heading" style="padding:4px; font-size:16px !important; font-weight:bold"><asp:Label ID="lblLeaveDuration" runat="server" Text="Leave Duration "></asp:Label></div>
                               <div class="panel-body" style="background:#eee; padding-top:8px; padding-bottom:8px;">
                                <div class="row">
                                <div class="col-lg-3 grid-lable1" style="margin-left:-10px; display: none">
                              <asp:RadioButton ID="cboquarter" runat="server" GroupName="ss" Text="" 
                                      Enabled="False" /><asp:Label ID="lblQuarter" runat="server" Text="Quarter"></asp:Label>
                              </div>
                               <div class="col-lg-3 grid-lable1">
                               <asp:RadioButton ID="cbohalfday" runat="server" GroupName="ss" 
                                         Text="" /><asp:Label ID="lblHalfDay" runat="server" Text="Half Day"></asp:Label>
                              </div>
                               <div class="col-lg-3 grid-lable1" style="display: none">
                               <asp:RadioButton ID="cbothreefourth" runat="server" GroupName="ss" 
                                         Text="" Enabled="False" /><asp:Label ID="lblhreeFourth" runat="server" Text="Three Fourth"></asp:Label>
                              </div>
                               <div class="col-lg-3 grid-lable1" style="">
                              <asp:RadioButton ID="cbofullday" runat="server" GroupName="ss" 
                                         Text="" /><asp:Label ID="lblFullDay" runat="server" Text="Full Day"></asp:Label>
                              </div>
                                
                                </div>
                               </div>
                               </div>


							  </div>
                              
                            
                 </div>
                 <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:10px; margin-bottom:20px;">
                           <asp:Button ID="cmdsave" runat="server" Text="Save"  
        type="button" class="btn btn-success " onclick="cmdsave_Click" /><i class="fa fa-plus;"></i>&nbsp;&nbsp;
        <asp:Button ID="cmdcancel" runat="server" type="button" Text="Cancel"
           class="btn btn-danger" onclick="cmdcancel_Click"
           /><i  class="fa fa-trash-o;"></i>
                 </div>
                </div>
              </div>
  
                              </div>  </div>  </div>  </div>

        
</asp:Content>
